package ace.module.product.api.model.input;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 管理员端租户添加商品.
 * @author Caspar
 *
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class PmsProductSaveInput {

  @NotNull
  @Schema(title = "基础资料")
  private PmsProductBaseSaveInput base;

  @NotEmpty
  @Schema(title = "商品规格属性")
  private List<PmsProductAttributeSaveInput> productAttributes;

  @NotEmpty
  @Schema(title = "sku")
  private List<PmsProductSkuSaveInput> skus;

  @Schema(title = "标签")
  private List<Long> tagIds;

  @Schema(title = "商品详情")
  private List<PmsProductDetailSaveInput> details;
  
}
